package com.xunwulian.weixin.h5.constant;

import com.xunwulian.base.util.EnumType;

public enum ResultType implements EnumType<ResultType, String, String> {

    SUCCESS("00", "交易成功"),
    FAILED("01", "交易失败"),
    NOT_EXISTS("02", "记录不存在"),
    USER_PASSWD_ERROR("03", "用户名或者密码错"),
    SECURITY_CHECK_FAILED("05", "FKEY值校验失败"),
    CARDINFO_INVALID("06", "卡号异常"),
    ;

    public String code;
    public String desc;

    ResultType(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }


    @Override
    public String getType() {
        return code;
    }

    @Override
    public String getDesc() {
        return desc;
    }
}
